﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchTrainingCourseControl.ascx.vb"
    Inherits="WebForm_SearchTrainingCourseControl" %>

<script src="<%=Me.ResolveUrl("~/js/JScript.js") %>" type="text/javascript"></script>

<asp:Panel ID="panel1" runat="server" BackColor="white" BorderWidth="1" Style="cursor: move;"
    Width="600">
    <br />
    <div align="center">
        <asp:Label ID="lblTitle" runat="server" Text="<%$ Resources:Title %>" SkinID="title"></asp:Label>
    </div>
    <br />
    <table align="center">
        <tr>
            <td>
                <My:MyGridView ID="GridView_TrainingCourse" runat="server" SkinID="pager" DataKeyNames="Id"
                    EmptyDataText="<%$ Resources:NoData %>" AllowPaging="True" AllowSorting="True"
                    AllowHoverEffect="False" AllowHoverSelect="False" MySortDirection="Ascending"
                    AutoGenerateColumns="False" PageSize="5">
                    <Columns>
                        <asp:TemplateField>
                            <itemtemplate>
                                <asp:CheckBox ID="CheckBox1" runat="server" />
                            </itemtemplate>
                            <headertemplate>
                                <input id="cbCheckAll" onclick="Check2(this,'GridView_TrainingCourse','CheckBox1');"
                                    runat="server" type="checkbox" /><asp:Label ID="Label2" runat="server" Text="全選"></asp:Label>
                            </headertemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="CourseTypeText" HeaderText="<%$ Resources:CourseTypeText %>"
                            SortExpression="CourseTypeText" />
                        <asp:BoundField DataField="CourseName" HeaderText="<%$ Resources:CourseName %>" SortExpression="CourseName" />
                        <asp:BoundField DataField="TeacherName" HeaderText="<%$ Resources:TeacherName %>"
                            SortExpression="TeacherName" />
                        <asp:BoundField DataField="TeacherTEL" HeaderText="<%$ Resources:TeacherTEL %>" SortExpression="TeacherTEL">
                            <headerstyle wrap="False" />
                            <itemstyle wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="TeacherEmail" HeaderText="<%$ Resources:TeacherEmail %>"
                            SortExpression="TeacherEmail" />
                        <asp:BoundField DataField="Org" HeaderText="<%$ Resources:Org %>" SortExpression="Org">
                            <headerstyle wrap="False" />
                            <itemstyle wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Hour" HeaderText="<%$ Resources:Hour %>" SortExpression="Hour" />
                    </Columns>
                </My:MyGridView>
                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"
                    SelectMethod="BLL_Select" TypeName="BLL_ManageTrainingCourse_SearchTrainingCourseControl">
                    <SelectParameters>
                        <asp:Parameter Name="GroupId" Type="Int32" />
                        <asp:Parameter Name="CourseType" Type="String" />
                    </SelectParameters>
                </asp:ObjectDataSource>
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:Button ID="btnOK" runat="server" Text="<%$ Resources:OK%>" />
                <asp:Button ID="btnCancel" runat="server" Text="<%$ Resources:Cancel%>" />
            </td>
        </tr>
    </table>
    <br />
</asp:Panel>
<asp:Button ID="btnDummy" runat="server" Style="display: none" SkinID="null" />
<ajaxToolkit:ModalPopupExtender ID="mpSearch" runat="server" TargetControlID="btnDummy"
    PopupControlID="panel1" CancelControlID="btnCancel" PopupDragHandleControlID="panel1" />
